-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(orchestrator): membrane-friendly timerUtils #9546
Conversation
18889a2
to
e4df2b6
Compare
Deploying agoric-sdk with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bug in the brand cache.
Also I think I misspoke in calling chainHub resumable in my recent PR. It's returning vows (and thus satisfies 9449) but I think resumable is a higher bar, with durable facets for the watcher callback object. I didn't encounter problems until I used the real vowTools for when
and watch
instead of the module imports.
3b10904
to
5ce93ac
Compare
5ce93ac
to
ca5d087
Compare
ca5d087
to
0a216a7
Compare
Refactored to use asVow and durable watcher handlers, so this review is too stale
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is an exo for timerUtils really worthwhile? How about making getTimeoutTimestampNS
a stateless helper function?
Have it return take an optional timerBrand
and return { timestamp, timerBrand }
so that the caller can cache the timerBrand
if they like. The returned timerBrand
would be undefined unless (a) the caller provided it or (b) this function needed to look it up.
0a216a7
to
4c68b4e
Compare
My understanding of #9449 is that we'll run into an issue since |
I'd like to see a test to show that there is such an issue. I don't think either the calling vat nor the timer service can be upgraded during a call to |
refs: #9449
Description
Towards the goal of membrane compatibility.
TimerUtils
are not an endowment fororchestrate
, nor currently consumed in an async flow, but is consumed byexos/local-orchestration-account.js
. It's also planned to be consumed byexo/scosmos-orchestration-account.js